/**
 * @see [description](https://docs.alipay.com/mini/api/ui-feedback)
 * @example show_loading('加载中',1000);
 */

export default function show_loading(content?: string, delay?: number) {
	const options = {} as {
		content: string;
		delay: number;
	};
	if (content !== undefined) {
		options.content = content;
	}
	if (delay !== undefined) {
		options.delay = delay;
	}

	my.showLoading({
		...options
	});
}
